<%@page import="com.dtf.core.common.config.BSysConstants"%>
<%@ page language="java" import="com.dtf.core.common.config.BSysConstants" pageEncoding="UTF-8"%>
<%@ taglib uri="/admin" prefix="admin"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title><%=BSysConstants.SYSTEM_SHOW_NAME %></title>

		<meta name="description" content="" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

		<!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="/ace/assets/css/bootstrap.css" />
		<link rel="stylesheet" href="/ace/assets/css/font-awesome.css" />

		<!-- 页面内的公共css必须放在ace.css前边 -->
		<link rel="stylesheet" href="/ace/assets/css/jquery.gritter.css" />
		<link rel="stylesheet" href="/ace/assets/css/ui.jqgrid.css" />

		<!-- text fonts -->
		<link rel="stylesheet" href="/ace/assets/css/ace-fonts.css" />

		<!-- ace styles -->
		<link rel="stylesheet" href="/ace/assets/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" />

		<!--[if lte IE 9]>
			<link rel="stylesheet" href="/ace/assets/css/ace-part2.css" class="ace-main-stylesheet" />
		<![endif]-->

		<!--[if lte IE 9]>
		  <link rel="stylesheet" href="/ace/assets/css/ace-ie.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->
		<script src="/ace/assets/js/ace-extra.js"></script>

		<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

		<!--[if lte IE 8]>
		<script src="/ace/assets/js/html5shiv.js"></script>
		<script src="/ace/assets/js/respond.js"></script>
		<![endif]-->
	</head>
		
	<body class="no-skin">
		<!-- #section:basics/navbar.layout -->
		<div id="navbar" class="navbar navbar-default">
			<script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>

			<div class="navbar-container" id="navbar-container">
				<!-- #section:basics/sidebar.mobile.toggle -->
				<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
					<span class="sr-only">Toggle sidebar</span>

					<span class="icon-bar"></span>

					<span class="icon-bar"></span>

					<span class="icon-bar"></span>
				</button>

				<!-- /section:basics/sidebar.mobile.toggle -->
				<div class="navbar-header pull-left">
					<!-- #section:basics/navbar.layout.brand -->
					<a href="javascript:void(0)" class="navbar-brand">
						<small>
							<i class="fa fa-leaf"></i>
							<%=BSysConstants.SYSTEM_SHOW_NAME %>
						</small>
					</a>

					<!-- /section:basics/navbar.layout.brand -->

					<!-- #section:basics/navbar.toggle -->

					<!-- /section:basics/navbar.toggle -->
				</div>

				<!-- #section:basics/navbar.dropdown -->
				<div class="navbar-buttons navbar-header pull-right" role="navigation">
					<ul class="nav ace-nav">

						<!-- #section:basics/navbar.user_menu -->
						<li class="light-blue">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
								<img class="nav-user-photo" src="/ace/assets/avatars/user.jpg" alt="Jason's Photo" />
								<span class="user-info">
									<small>欢迎登录,</small>
									管理员
								</span>

								<i class="ace-icon fa fa-caret-down"></i>
							</a>

							<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a href="#">
										<i class="ace-icon fa fa-cog"></i>
										设置
									</a>
								</li>
								<li class="divider"></li>
								<li>
									<a href="javascript:void(0)" onclick="loginOut()">
										<i class="ace-icon fa fa-power-off"></i>
										退出登录
									</a>
								</li>
							</ul>
						</li>

						<!-- /section:basics/navbar.user_menu -->
					</ul>
				</div>

				<!-- /section:basics/navbar.dropdown -->
			</div><!-- /.navbar-container -->
		</div>

		<!-- /section:basics/navbar.layout -->
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<!-- #section:basics/sidebar -->
			<div id="sidebar" class="sidebar                  responsive">
				<script type="text/javascript">
					try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
				</script>
				
				<!-- 快捷菜单 -->
				<div class="sidebar-shortcuts" id="sidebar-shortcuts">
					<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
						<button class="btn btn-success">
							<i class="ace-icon fa fa-signal"></i>
						</button>

						<button class="btn btn-info">
							<i class="ace-icon fa fa-pencil"></i>
						</button>

						<!-- #section:basics/sidebar.layout.shortcuts -->
						<button class="btn btn-warning">
							<i class="ace-icon fa fa-users"></i>
						</button>

						<button class="btn btn-danger">
							<i class="ace-icon fa fa-cogs"></i>
						</button>

						<!-- /section:basics/sidebar.layout.shortcuts -->
					</div>

					<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
						<span class="btn btn-success"></span>

						<span class="btn btn-info"></span>

						<span class="btn btn-warning"></span>

						<span class="btn btn-danger"></span>
					</div>
				</div>
				<!-- 快捷菜单end -->
				
				<!-- 左侧菜单 -->
				<admin:leftMenu />
				<!-- <ul class="nav nav-list" style="top: 0px;">
					<li class="">
						<a href="index.html">
							<i class="menu-icon fa fa-tachometer"></i>
							<span class="menu-text"> 主页 </span>
						</a>

						<b class="arrow"></b>
					</li>
				</ul> -->
				<!-- 左侧菜单END -->
				
				<!-- <base:rightMenu /> -->
				<!-- #section:basics/sidebar.layout.minimize -->
				<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
					<i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
				</div>

				<!-- /section:basics/sidebar.layout.minimize -->
				<script type="text/javascript">
					try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
				</script>
			</div>

			<!-- /section:basics/sidebar -->
			<div class="main-content">
				<div class="main-content-inner">
					<!-- #面包屑导航开始 -->
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<%-- <%=request.getAttribute("breadcrumbsHtml") %> --%>
						</ul><!-- /.breadcrumb -->

						<!-- #section:basics/content.searchbox -->
						<div class="nav-search" id="nav-search">
							<form class="form-search">
								<span class="input-icon">
									<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
									<i class="ace-icon fa fa-search nav-search-icon"></i>
								</span>
							</form>
						</div><!-- /.nav-search -->

						<!-- /section:basics/content.searchbox -->
					</div>
					<!-- #面包屑导航END -->
		<!-- basic scripts -->

		<!--[if !IE]> -->
		<script type="text/javascript">
			window.jQuery || document.write("<script src='/ace/assets/js/jquery.js'>"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
			<script type="text/javascript">
			 window.jQuery || document.write("<script src='/ace/assets/js/jquery1x.js'>"+"<"+"/script>");
			</script>
		<![endif]-->
		<script type="text/javascript">
			if('ontouchstart' in document.documentElement) document.write("<script src='/ace/assets/js/jquery.mobile.custom.js'>"+"<"+"/script>");
		</script>
		<script src="/ace/assets/js/bootstrap.js"></script>

		<!-- page specific plugin scripts -->
		<script src="/ace/assets/js/fuelux/fuelux.wizard.js"></script>
		<script src="/ace/assets/js/jquery.validate.js"></script>
		<script src="/ace/assets/js/jquery.serializeObject.js"></script>
		<script src="/ace/assets/js/additional-methods.js"></script>
		<script src="/ace/assets/js/jquery.maskedinput.js"></script>
		<script src="/ace/assets/js/select2.js"></script>
		<script src="/ace/assets/js/fuelux/fuelux.spinner.js"></script>
		
		<script src="/ace/assets/js/jquery.nestable.js"></script>
		<script src="/ace/assets/js/jqGrid/jquery.jqGrid.src.js"></script>
		<script src="/ace/assets/js/jqGrid/i18n/grid.locale-cn.js"></script>
		<script src="/ace/common/jqGrid.init.js"></script>
		
		<!-- ace scripts -->
		<script src="/ace/assets/js/ace/elements.scroller.js"></script>
		<script src="/ace/assets/js/ace/elements.colorpicker.js"></script>
		<script src="/ace/assets/js/ace/elements.fileinput.js"></script>
		<script src="/ace/assets/js/ace/elements.typeahead.js"></script>
		<script src="/ace/assets/js/ace/elements.wysiwyg.js"></script>
		<script src="/ace/assets/js/ace/elements.spinner.js"></script>
		<script src="/ace/assets/js/ace/elements.treeview.js"></script>
		<script src="/ace/assets/js/ace/elements.wizard.js"></script>
		<script src="/ace/assets/js/ace/elements.aside.js"></script>
		<script src="/ace/assets/js/ace/ace.js"></script>
		<script src="/ace/assets/js/ace/ace.ajax-content.js"></script>
		<script src="/ace/assets/js/ace/ace.touch-drag.js"></script>
		<script src="/ace/assets/js/ace/ace.sidebar.js"></script>
		<script src="/ace/assets/js/ace/ace.sidebar-scroll-1.js"></script>
		<script src="/ace/assets/js/ace/ace.submenu-hover.js"></script>
		<script src="/ace/assets/js/ace/ace.widget-box.js"></script>
		<script src="/ace/assets/js/ace/ace.settings.js"></script>
		<script src="/ace/assets/js/ace/ace.settings-rtl.js"></script>
		<script src="/ace/assets/js/ace/ace.settings-skin.js"></script>
		<script src="/ace/assets/js/ace/ace.widget-on-reload.js"></script>
		<script src="/ace/assets/js/ace/ace.searchbox-autocomplete.js"></script>
		<script src="/ace/assets/js/bootbox.js"></script>
		
		<script src="/admin/common/jquery/center-loader/center-loader.min.js"></script>
		
		<!-- inline scripts related to this page -->
		<script type="text/javascript">
			var contentPageUrl = "<%=request.getAttribute("contentPage") %>";
			var system_basePath = "/";
			jQuery(function($) {
				$('#id-change-style').on(ace.click_event, function() {
					var toggler = $('#menu-toggler');
					var fixed = toggler.hasClass('fixed');
					var display = toggler.hasClass('display');
					
					if(toggler.closest('.navbar').length == 1) {
						$('#menu-toggler').remove();
						toggler = $('#sidebar').before('<a id="menu-toggler" data-target="#sidebar" class="menu-toggler" href="#">\
							<span class="sr-only">Toggle sidebar</span>\
							<span class="toggler-text"></span>\
						 </a>').prev();
			
						 var ace_sidebar = $('#sidebar').ace_sidebar('ref');
						 ace_sidebar.set('mobile_style', 2);
			
						 var icon = $(this).children().detach();
						 $(this).text('Hide older Ace toggle button').prepend(icon);
						 
						 $('#id-push-content').closest('div').hide();
						 $('#id-push-content').removeAttr('checked');
						 $('.sidebar').removeClass('push_away');
					 } else {
						$('#menu-toggler').remove();
						toggler = $('.navbar-brand').before('<button data-target="#sidebar" id="menu-toggler" class="three-bars pull-left menu-toggler navbar-toggle" type="button">\
							<span class="sr-only">Toggle sidebar</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>\
						</button>').prev();
						
						 var ace_sidebar = $('#sidebar').ace_sidebar('ref');
						 ace_sidebar.set('mobile_style', 1);
						
						var icon = $(this).children().detach();
						$(this).text('Show older Ace toggle button').prepend(icon);
						
						$('#id-push-content').closest('div').show();
					 }
			
					 if(fixed) toggler.addClass('fixed');
					 if(display) toggler.addClass('display');
					 
					 $('.sidebar[data-sidebar-hover=true]').ace_sidebar_hover('reset');
					 $('.sidebar[data-sidebar-scroll=true]').ace_sidebar_scroll('reset');
			
					 return false;
				});
				
				$('#id-push-content').removeAttr('checked').on('click', function() {
					$('.sidebar').toggleClass('push_away');
				});
			});
		</script>

		<!-- the following scripts are used in demo only for onpage help and you don't need them -->
		<link rel="stylesheet" href="/ace/assets/css/ace.onpage-help.css" />
		<link rel="stylesheet" href="/ace/docs/assets/js/themes/sunburst.css" />

		<script type="text/javascript"> ace.vars['base'] = '..'; </script>
		<script src="/ace/assets/js/ace/elements.onpage-help.js"></script>
		<script src="/ace/assets/js/ace/ace.onpage-help.js"></script>
		<script src="/ace/docs/assets/js/rainbow.js"></script>
		<script src="/ace/docs/assets/js/language/generic.js"></script>
		<script src="/ace/docs/assets/js/language/html.js"></script>
		<script src="/ace/docs/assets/js/language/css.js"></script>
		<script src="/ace/docs/assets/js/language/javascript.js"></script>
		
		<!-- 提示框 -->
		<script src="/ace/assets/js/jquery.easypiechart.js"></script>
		<script src="/ace/assets/js/jquery.gritter.js"></script>
		<!-- 树控件 -->
		<link rel="stylesheet" href="/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
		<script type="text/javascript" src="/ztree/js/jquery.ztree.core-3.5.js"></script>
		<script type="text/javascript" src="/ztree/js/jquery.ztree.excheck-3.5.js"></script>
		<style>
			/* 更改bootstrp默认字体，优先使用微软雅黑 */
			.navbar-brand,.footer-content,.nav-list,button, input, select, textarea,h1 ,h2, h3, h4, h5, h6 { font-family: Microsoft YaHei,'宋体' , Tahoma, Helvetica, Arial, "\5b8b\4f53", sans-serif;}
		</style>		
					<!-- /section:basics/content.breadcrumbs -->
					<div id="div_contentPage" class="page-content">
						<%=request.getAttribute("page-content") %>
					</div><!-- /.page-content -->
				</div>
			</div><!-- /.main-content -->

			<div class="footer">
				<div class="footer-inner">
					<!-- #section:basics/footer -->
					<div class="footer-content">
						<span class="bigger-120">
							<span class="blue bolder">
							<%=BSysConstants.SYSTEM_COMPANY_NAME %>
							</span>
							<%=BSysConstants.SYSTEM_SHOW_NAME %> &copy; 2013-2014
						</span>

						&nbsp; &nbsp;
						<span class="action-buttons">
							<a href="#">
								<i class="ace-icon fa fa-twitter-square light-blue bigger-150"></i>
							</a>

							<a href="#">
								<i class="ace-icon fa fa-facebook-square text-primary bigger-150"></i>
							</a>

							<a href="#">
								<i class="ace-icon fa fa-rss-square orange bigger-150"></i>
							</a>
						</span>
					</div>

					<!-- /section:basics/footer -->
				</div>
			</div>

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->
		
		
		<!-- 时间控件 -->
		<script src="/ace/assets/js/date-time/moment.js"></script>
		<script src="/ace/assets/js/date-time/moment-ch-zh.js"></script>
		<script src="/ace/assets/js/date-time/bootstrap-datetimepicker.js"></script>
		<link rel="stylesheet" href="/ace/assets/css/bootstrap-datetimepicker.css" />
		<script type="text/javascript" src="/admin/frame/js/main.js"></script>
	</body>
</html>
